import type { ActionProps } from "~/types/enum";

export enum OrganizationApi {
  GetList = "api/Organization/GetList",
  AddorUpdate = "api/Organization/AddorUpdate",
  CheckData = "api/Organization/CheckName",
  Delete = "api/Organization/Delete",
  Reduction = "api/Organization/Reduction",
  GetDetail = "api/Organization/GetListb",
  GetListAll = "api/Organization/GetListc"
}
export class OrganizationAction {
  actionPros: ActionProps = {
    addCode: "OrganizationAdd",
    deleteCode: "OrganizationDelete",
    updateCode: "OrganizationUpdate",
    queryCode: "OrganizationGetList",
    importCode: "",
    exportCode: "OrganizationExport",
    downImportCode: "",
    reductionCode: "OrganizationReduction",
    recyclebinCode: "OrganizationRecyclebinCode"
  };
}
export interface OrganizationInfo {
  name: string;
  order: string;
  parentId: string;
  children: OrganizationInfo[];
}
